package csv_parser;

import java.io.File;
import java.util.ArrayList;

public class DataHandler {
	
	public void readData(){
		File file = new File(".");
		System.out.println(file.getAbsolutePath());
		ArrayList<String> data = new ArrayList<>();
		ArrayList<String> plottableData = new ArrayList<>();
		CSVToMatrix.doPolynomial("data\\Fraclac rezultati za pluca.csv", 1, data, plottableData);
		CSVToMatrix.doPolynomial("data\\Fraclac rezultati za bubreg.csv", 2, data, plottableData);
		CSVToMatrix.doPolynomial("data\\Fraclac rezultati za dojku.csv", 3, data, plottableData);
		CSVToMatrix.normalize(data, plottableData);

		CSVToMatrix.writeToFiles("octave_scripts/karcinom.m", "octave_scripts/testkarcinom.m", data, plottableData);
	}

}
